package com.ruoyi.buss.task.domain;

public class TaskReportsVO implements Comparable<TaskReportsVO>
{
    private String  name;

    private int todo;

    private int done;

    private String jindu;

    /**
     *该字段为报表内排序字段，由进度乘1000四舍五入取整；
     */
    private int sort;

    private int seq;

    public TaskReportsVO(String name, int todo, int done, String jindu)
    {
        this.name = name;
        this.todo = todo;
        this.done = done;
        this.jindu = jindu;
    }

    public TaskReportsVO()
    {}

    public String getName()
    {
        return name;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public int getTodo()
    {
        return todo;
    }

    public void setTodo(int todo)
    {
        this.todo = todo;
    }

    public int getDone()
    {
        return done;
    }

    public void setDone(int done)
    {
        this.done = done;
    }


    public int getSeq()
    {
        return seq;
    }

    public void setSeq(int seq)
    {
        this.seq = seq;
    }

    public int getSort()
    {
        return sort;
    }

    public void setSort(int sort)
    {
        this.sort = sort;
    }

    public String getJindu()
    {
        return jindu;
    }

    public void setJindu(String jindu)
    {
        this.jindu = jindu;
    }

    @Override
    public int compareTo(TaskReportsVO o)
    {
        return this.getSort()-o.getSort();
    }
}
